﻿//-----------------------------------------------------------------------
// <copyright file="PrintSOEPropertyForm.cs" company="WorldView Solutions Inc">
//     Copyright (c) WorldView Solutions Inc. This source is subject to the Microsoft Public License (Ms-PL). All other rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Windows.Forms;

namespace WorldViewSolutions.ArcGISServer.ArcCatalog
{
	public partial class PrintSOEPropertyForm : Form
	{
		public string TemplateDirectory
		{
			get
			{
				return tbDirectory.Text;
			}
            set
            {
                tbDirectory.Text = value;
            }
		}

		public PrintSOEPropertyForm()
		{
			InitializeComponent();
		}


		#region Internal Properties - getHWnd, Layer, Field, PageSite

		/// <summary>
		/// The form's handle
		/// </summary>
		internal int getHWnd()
		{
			return this.Handle.ToInt32();
		}

		/// <summary>
		/// The PageSite of the IComPropertyPage object using the form.  Allows the form to report when its contents have changed.
		/// </summary>
		internal ESRI.ArcGIS.Framework.IComPropertyPageSite PageSite { private get; set; }

		#endregion

		

        private void btnBrowse_Click(object sender, EventArgs e)
        {
            folderBrowserDialog1.ShowDialog();
            tbDirectory.Text = folderBrowserDialog1.SelectedPath;
        }

	}
}
